#!/usr/bin/env python2.5

import procpy

w=procpy.Proc()

for i in w.pids:
   e = w.pidinfo(i)['environ']
   if len(e) == 1:
      print i, w.pidinfo(i)['cmd'], e
#   if w.pidinfo(i)['environ'].has_key == 'rubbish':
#      print w.pidinfo(i)['environ']
